<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>伪元素选择器</title>
		<style type="text/css">
			.box {
				margin: 0 auto;
				width: 234px;
				height: 340px;
				background-color: #E5E5E5;
				text-align: center;
			}
			.box::before {
				content: '';
				display:inline-block;
				width: 30px;
				height: 340px;
				background-color: #0086B3;
			}
			.box::after {
				content: '';
				display: inline-block;
				width: 30px;
				height: 340px;
				background-color: #32b32b;
			}
			.price span::before {
				content:'￥' ;
			}
			.price span {
				font-size: 20px;
				color: #FF6700;
			}
			.price span::after {
				content: '元'; /*内容*/
			}
			/* productlist:[{price:666},{}] */
		</style>
	</head>
	<body>
		<!-- 伪元素选择器
			::表示一个伪元素   before after
			content:''
		 
		 -->
		 
		 <div class="box">
			 <p class="price"><span>666</span><del>888元</del></p>
		 </div>
	</body>
</html>
